#ifndef DETECTION_H
#define DETECTION_H


#include "proto/messages_robocup_ssl_wrapper.pb.h"
#include "proto/messages_robocup_ssl_detection.pb.h"
#include "proto/grSim_Commands.pb.h"
#include "proto/grSim_Packet.pb.h"
#include "proto/grSim_Replacement.pb.h"
#include "proto/netraw.h"
#include <QtNetwork/QUdpSocket>
#include "connection.h"

#include <QDialog>


using namespace std;


class QUdpSocket;


class Detection : public QDialog {

    Q_OBJECT

public:
    Detection();

    Detection(int,string , string);
    ~Detection();
    bool open();
    bool isopen();
public slots:
    void recv();

private:
    Net::UDP MultiCastsocket;
    string _net_address;
    string _net_interface;
    int port;
    SSL_WrapperPacket  Efrom;
    QUdpSocket *server;
    QUdpSocket *commandSocket;




};

#endif // DETECTION_H
